/**
******************************************************************************
* @file    usbd_conf.h
* @author  MCD Application Team
* @version V1.1.0
* @date    19-March-2012
* @brief   USB Device configuration file
******************************************************************************
* @attention
*
* <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*        http://www.st.com/software_license_agreement_liberty_v2
*
* Unless required by applicable law or agreed to in writing, software 
* distributed under the License is distributed on an "AS IS" BASIS, 
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USBD_CONF__H__
#define __USBD_CONF__H__

/* Includes ------------------------------------------------------------------*/
#include "usb_conf.h"
#include "mt-camera.h"	// #include "mt-camera.h"


#define USBD_VID				0xFFFF
#define USBD_PID				0x1200

#define USBD_CFG_MAX_NUM		1
#define USBD_ITF_MAX_NUM		2	// Input, Hid

#define USB_MAX_STR_DESC_SIZ	64

#define USBD_SELF_POWERED

#define USBD_DYNAMIC_DESCRIPTOR_CHANGE_ENABLED

#define	INPUT_MT_MAX_NUM		TOUCH_DATA_MAX_NUM

#define INPUT_INTERFACE_NUMBER	0x00
#define INPUT_NUM_ENDPOINTS		0x01	/* IN */
#define INPUT_IN_EP				0x81	/* EP_ADDR */
#define INPUT_IN_PACKET_SIZE	(1 + INPUT_MT_MAX_NUM*6 + 1)//0x1A	/* 26 bytes = sizeof(INPUT_REPORT) */	
#define INPUT_INTERVAL			0x02	/* 2 msec */

#define HID_INTERFACE_NUMBER	0x01
#define HID_NUM_ENDPOINTS		0x02	/* IN/OUT */
#define HID_IN_EP				0x82	/* EP_ADDR */
#define HID_OUT_EP				0x02	/* EP_ADDR */
#define HID_IN_PACKET_SIZE		0x40	/* 64 bytes */
#define HID_OUT_PACKET_SIZE		0x40	/* 64 bytes */
#define HID_INTERVAL			0x01	/* 1 msec */


#define REPORTID_RELMOUSE		0x11
#define REPORTID_ABSMOUSE		0x12
#define REPORTID_KEYBOARD		0x13
#define REPORTID_MULTITOUCH		0x14
#define	REPORTID_MAXCOUNT		0x15
#define	REPORTID_FEATURE		0x16

#define REPORTID_HID			0x21


//#define	USE_RELMOUSE			1
#define	USE_ABSMOUSE			1
#define	USE_KEYBOARD			1
#define	USE_MULTITOUCH			1


#endif //__USBD_CONF__H__

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
